{#
(C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>

This file is part of "vikuit".

"vikuit" is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

"vikuit" is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with "vikuit".  If not, see <http://www.gnu.org/licenses/>.
#}

{% extends "layouts/module-layout.html" %}

{% block head %}
	<link rel="alternate" type="application/rss+xml" title="{{ _('%s articles')|format(this_user.nickname) }}" href="/feed/module/user/{{ this_user.nickname }}" />
{% endblock %}

{% block title %} {{ this_user.nickname }}: {{ _('contacts') }} {% endblock %}

{% block rightSidebar %}
	<div class="box">
		<div class="vk_title">{{ _('RSS') }}</div>
		<ul><li><a href="/feed/module/user/{{ this_user.nickname }}"><img src="/static/images/feed.png" alt="feed" class="icon" /> {{ _('Latest articles by %s')|format(this_user.nickname) }}</a></li></ul>
	</div>
{% endblock %}

{% block content %}
	<h1><img src="/images/user/thumbnail/{{ this_user.nickname }}" alt="{{ this_user.nickname}}" style="vertical-align: middle" /> <a href="/module/user/{{ this_user.nickname }}">{{ this_user.nickname }}</a>: {{ _('contacts') }}</h1>
	
{% for u in users %}
	<div class="grid_1 {% if loop.index % 9 == 0 %}omega{% elif loop.index % 9 == 1 %}alpha{% endif %}">
	<p class="center">
		<a href="/module/user/{{ u.user_to_nickname }}">
			<img src="/images/user/thumbnail/{{ u.user_to_nickname }}"
				alt="{{ u.user_to_nickname }}"
				title="{{ u.user_to_nickname }}" />
		</a>
	</p>
	</div>
	{% if loop.index % 9 == 0 %}
	<div class="clear">&nbsp;</div>
	{% endif %}
{% endfor %}
<div class="clear">&nbsp;</div>

{% include 'inc-pagination.html' %}
	
{% endblock %}